package com.sctvcloud.zhaohua_sd.ui.activities;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.widget.ImageView;

import com.ruihang.generalibrary.ui.fragment.BaseGeneraFragment;
import com.sctvcloud.zhaohua_sd.R;
import com.sctvcloud.zhaohua_sd.base.BaseActivity;
import com.sctvcloud.zhaohua_sd.ui.fragment.CultureTravelFragment;
import com.sctvcloud.zhaohua_sd.ui.utils.TitleUtils;

import butterknife.BindView;
import butterknife.ButterKnife;

import static com.sctvcloud.zhaohua_sd.ui.activities.H5NormalActivity.IS_SHOW_TITTLE;

public class FoodCortsActivity extends FragmentActivity {
    @BindView(R.id.title_top_back)
    protected ImageView back_img;
    private String title;

    //    @BindView(R.id.title_top_title)
//    protected CustomFontTextView title_top_title;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_food_courts);
        ButterKnife.bind(this);

        title = getIntent().getStringExtra(BaseGeneraFragment.EX_TITLE);


        new TitleUtils(this).useAndSetTxTitle(title);

        back_img.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });


//        Bundle bundle = new Bundle();
        CultureTravelFragment fragment = new CultureTravelFragment();
        fragment.setChannelUrl(getIntent().getStringExtra(BaseActivity.EX_URL));
//        fragment.setArguments(bundle);
        getSupportFragmentManager()    //
                .beginTransaction()
                .add(R.id.fragment_container,fragment)
                .commit();


    }


}
